package cos.android.sprites;

import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Rect;

public class Joystick extends Element{

	public Joystick(Bitmap sprite, int xPos, int yPos, int height, int width) {
		super(sprite, xPos, yPos, height, width);
		
	}

	
	@Override
	public void draw(Canvas canvas) {
		Rect dest = new Rect( Math.round(getxPos()), Math.round(getyPos()), Math.round(getxPos() + getWidth()),
				Math.round(getyPos() + getHeight()));
		canvas.drawBitmap(getSprite(), getRect(), dest, null);		
	}

	
	

		
}
